<?php
$this->registerCssFile('@web/css/backstage.css',['depends'=>['app\assets\AppAsset']]);
use yii\helpers\Url;
// var_dump($admininfo);die;
//echo strlen($admininfo->password);die;
?>
<div class="main">
            <!--右侧内容-->
    <div class="cont">
        <div class="title">管理员添加</div>
        <div class="details">
            <div class="details_operation clearfix">
                <div class="bui_select">
                    <input type="button" value="添&nbsp;&nbsp;加" class="add">
                </div>
                <div class="fr">
                    <div class="text">
                        <span>日期：</span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1"><?= date("Y-m-d "); ?></option>
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1">Keep on going never give up.</option>
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
<!--                        <input type="text" value="" class="search">-->
                    </div>
                </div>
            </div>
            <table class="table" cellspacing="0" cellpadding="0">
                <thead>
                <tr>
                    <th width="15%">id</th>
                    <th width="35%">用户名</th>
                    <th width="25%">密码</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <form method="post" action="./?r=admin/update&id=<?= $admininfo->id?>">
                     <td>
                         <input type="text" placeholder="<?=$admininfo->id;?>" name="id" value="<?=$admininfo->id;?>">
                     </td>
                     <td>
                         <input type="text" placeholder="<?=$admininfo->username;?>" name="username" value="<?=$admininfo->username;?>">
                     </td>
                     <td>
                         <input type="text" placeholder="不填写代表密码不变" name="password" value="<?=$admininfo->password;?>">
                         不填写代表密码不变
                     </td>
                     <td>
                         <input type="submit" class="btn"><input type="reset" class="btn">
                     </td>
                        <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
                    </form>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>